@nice2dev/ui 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/NiceConfirmDialog-BIppqGad.cjs +1 -0
  2. package/dist/NiceConfirmDialog-CtU3paTe.js +81 -0
  3. package/dist/NiceErrorBoundary-C9ZPRC1v.js +695 -0
  4. package/dist/NiceErrorBoundary-CNsxmX4m.cjs +1 -0
  5. package/dist/NiceForm-B-T7vnE3.cjs +382 -0
  6. package/dist/NiceForm-D3g3RUzs.js +5000 -0
  7. package/dist/NiceModal-Cg7Eo9Ig.cjs +1 -0
  8. package/dist/NiceModal-IHk7nfRN.js +95 -0
  9. package/dist/NiceModuleLifecyclePanel-BY3zmDOy.js +7582 -0
  10. package/dist/NiceModuleLifecyclePanel-Dmbqjb8W.cjs +1 -0
  11. package/dist/NicePagination-BAxcfqnE.js +171 -0
  12. package/dist/NicePagination-BONcK9M_.cjs +1 -0
  13. package/dist/NicePinCodeInput-BDR2PSoo.cjs +696 -0
  14. package/dist/NicePinCodeInput-xJwHHpeS.js +13102 -0
  15. package/dist/NiceSavedQueryPanel-CbE-wQLO.js +6893 -0
  16. package/dist/NiceSavedQueryPanel-DuE2wgV_.cjs +596 -0
  17. package/dist/NiceWindow--TIJTyxg.cjs +1 -0
  18. package/dist/NiceWindow-vqhh0tb_.js +1592 -0
  19. package/dist/charts-C877HM7d.js +4657 -0
  20. package/dist/charts-CjHdhW3E.cjs +761 -0
  21. package/dist/charts.cjs +1 -1
  22. package/dist/charts.mjs +1 -1
  23. package/dist/core-BbGBF3q0.js +25364 -0
  24. package/dist/core-DwOyxP1F.cjs +122 -0
  25. package/dist/data-branching-7B25ogCm.cjs +1 -0
  26. package/dist/data-branching-B_jX2zDY.js +6133 -0
  27. package/dist/data-branching.cjs +1 -1
  28. package/dist/data-branching.mjs +1 -1
  29. package/dist/data.cjs +1 -1
  30. package/dist/data.mjs +1 -1
  31. package/dist/devops-DbKWJZmr.cjs +17 -0
  32. package/dist/devops-nYQjPDoH.js +7684 -0
  33. package/dist/devops.cjs +1 -1
  34. package/dist/devops.mjs +1 -1
  35. package/dist/editors.cjs +1 -1
  36. package/dist/editors.mjs +3 -3
  37. package/dist/feedback.cjs +1 -1
  38. package/dist/feedback.mjs +15 -14
  39. package/dist/index-By5F3DMu.js +67607 -0
  40. package/dist/index-aAc_1dLg.cjs +5518 -0
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.css +1 -1
  43. package/dist/index.d.ts +76 -5
  44. package/dist/index.mjs +986 -985
  45. package/dist/lazy.cjs +1 -1
  46. package/dist/lazy.mjs +24 -24
  47. package/dist/navigation.cjs +1 -1
  48. package/dist/navigation.d.ts +332 -5
  49. package/dist/navigation.mjs +4 -4
  50. package/dist/no-code-C4DPSqYz.cjs +332 -0
  51. package/dist/no-code-zo1dWOLX.js +7133 -0
  52. package/dist/no-code.cjs +1 -1
  53. package/dist/no-code.mjs +1 -1
  54. package/dist/overlays.cjs +1 -1
  55. package/dist/overlays.mjs +2 -2
  56. package/dist/pickerCommons-BRJZMI3n.cjs +1 -0
  57. package/dist/pickerCommons-DWhw7aWu.js +2043 -0
  58. package/dist/pickerCommons.css +1 -0
  59. package/dist/style.css +4 -4
  60. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),C=require("./core-DwOyxP1F.cjs"),d=require("react"),N={info:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})}),warning:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),error:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),success:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})})},b=({visible:c,message:m,header:o,icon:h,variant:i="warning",acceptLabel:a,rejectLabel:f,onAccept:u,onReject:n,closeOnOverlay:v=!1,closeOnEscape:s=!0,size:x="md",className:g,style:j})=>{const{t}=C.Zt();if(d.useEffect(()=>{if(!c||!s)return;const r=_=>{_.key==="Escape"&&n()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[c,s,n]),d.useEffect(()=>(c?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c]),!c)return null;const l=h??N[i],w=a??t("confirm.accept","Yes"),y=f??t("confirm.reject","No");return e.jsx("div",{className:"nice-modal-overlay",onClick:v?n:void 0,children:e.jsxs("div",{className:`nice-confirm nice-confirm--${i} nice-confirm--${x} ${g||""}`,style:j,role:"alertdialog","aria-modal":"true","aria-label":o,"aria-describedby":"nice-confirm-message",onClick:r=>r.stopPropagation(),children:[o&&e.jsx("div",{className:"nice-confirm__header",children:e.jsx("h3",{className:"nice-confirm__title",children:o})}),e.jsxs("div",{className:"nice-confirm__body",children:[l&&e.jsx("div",{className:`nice-confirm__icon nice-confirm__icon--${i}`,children:l}),e.jsx("div",{id:"nice-confirm-message",className:"nice-confirm__message",children:m})]}),e.jsxs("div",{className:"nice-confirm__footer",children:[e.jsx("button",{type:"button",className:"nice-btn nice-btn--ghost nice-btn--md",onClick:n,children:y}),e.jsx("button",{type:"button",className:`nice-btn nice-btn--${i==="error"?"error":"primary"} nice-btn--md`,onClick:u,autoFocus:!0,children:w})]})]})})};exports.NiceConfirmDialog=b;
@@ -0,0 +1,81 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { Z as C } from "./core-BbGBF3q0.js";
3
+ import m from "react";
4
+ const z = {
5
+ info: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }),
6
+ warning: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" }) }),
7
+ error: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
8
+ success: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) })
9
+ }, E = ({
10
+ visible: i,
11
+ message: a,
12
+ header: o,
13
+ icon: h,
14
+ variant: n = "warning",
15
+ acceptLabel: f,
16
+ rejectLabel: v,
17
+ onAccept: u,
18
+ onReject: c,
19
+ closeOnOverlay: g = !1,
20
+ closeOnEscape: l = !0,
21
+ size: p = "md",
22
+ className: w,
23
+ style: y
24
+ }) => {
25
+ const { t: s } = C();
26
+ if (m.useEffect(() => {
27
+ if (!i || !l)
28
+ return;
29
+ const r = (b) => {
30
+ b.key === "Escape" && c();
31
+ };
32
+ return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
33
+ }, [i, l, c]), m.useEffect(() => (i ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
34
+ document.body.style.overflow = "";
35
+ }), [i]), !i)
36
+ return null;
37
+ const d = h ?? z[n], _ = f ?? s("confirm.accept", "Yes"), N = v ?? s("confirm.reject", "No");
38
+ return /* @__PURE__ */ e("div", { className: "nice-modal-overlay", onClick: g ? c : void 0, children: /* @__PURE__ */ t(
39
+ "div",
40
+ {
41
+ className: `nice-confirm nice-confirm--${n} nice-confirm--${p} ${w || ""}`,
42
+ style: y,
43
+ role: "alertdialog",
44
+ "aria-modal": "true",
45
+ "aria-label": o,
46
+ "aria-describedby": "nice-confirm-message",
47
+ onClick: (r) => r.stopPropagation(),
48
+ children: [
49
+ o && /* @__PURE__ */ e("div", { className: "nice-confirm__header", children: /* @__PURE__ */ e("h3", { className: "nice-confirm__title", children: o }) }),
50
+ /* @__PURE__ */ t("div", { className: "nice-confirm__body", children: [
51
+ d && /* @__PURE__ */ e("div", { className: `nice-confirm__icon nice-confirm__icon--${n}`, children: d }),
52
+ /* @__PURE__ */ e("div", { id: "nice-confirm-message", className: "nice-confirm__message", children: a })
53
+ ] }),
54
+ /* @__PURE__ */ t("div", { className: "nice-confirm__footer", children: [
55
+ /* @__PURE__ */ e(
56
+ "button",
57
+ {
58
+ type: "button",
59
+ className: "nice-btn nice-btn--ghost nice-btn--md",
60
+ onClick: c,
61
+ children: N
62
+ }
63
+ ),
64
+ /* @__PURE__ */ e(
65
+ "button",
66
+ {
67
+ type: "button",
68
+ className: `nice-btn nice-btn--${n === "error" ? "error" : "primary"} nice-btn--md`,
69
+ onClick: u,
70
+ autoFocus: !0,
71
+ children: _
72
+ }
73
+ )
74
+ ] })
75
+ ]
76
+ }
77
+ ) });
78
+ };
79
+ export {
80
+ E as N
81
+ };